package edu.kjxy.day02Synchronized.synLockIn_1;

/**
 * 功能:
 * 作者:程序员欧阳子韩
 * 日期:2024/2/1 20:02
 */
public class Service {
    synchronized public void service1(){
        System.out.println("service1");
        service2();
    }

    synchronized private void service2() {
        System.out.println("service2");
        service3();
    }

    synchronized private void service3() {
        System.out.println("service3");
    }
}
